package cn.bdqn.dao;

import cn.bdqn.bean.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(User record);

    int insertSelective(User record);

    User selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(User record);

    int updateByPrimaryKey(User record);

    List<User> getUsers();

    User getUserByPwd(@Param("code") String code, @Param("pwd") String pwd);

    List<User> getSelective(User user);
}
